package com.itheima.IO流.day01.字节流FileInputStream;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("day10的IO流01\\aaa.txt",true);
        fos.write('a');
        fos.write(new byte[]{97,98,99});
        fos.write(new byte[]{97,98,99},0,2);
        fos.write("\r\n".getBytes());
        fos.write("hello".getBytes());
        fos.write("\r\n".getBytes());
        fos.write("床前明月光".getBytes());
        fos.write(System.lineSeparator().getBytes());
        fos.flush();
    }
}
